﻿CreateGoogle(160,600,null,null,null,null,null,null,null,null);
function pageLoad(sender, args)
{
    CreateValid();
    $addHandler($get("btnSave"),"click",SaveFeed);
 
}
//保存用户反馈过来的信息
function SaveFeed()
{
var Content=$get("txtContent").value;

   var Email=$get("txtEmail").value;
   var CateID=$get("FeedBackCat").value;
   var Name=$get("TextName").value;
   var PageUrl=$get("TextUrl").value;
   
  
    if(!validationForm(new validationOptions('btnSave', '', true, ''))) return;
    $get("btnSave").disabled = true;
    showProgressBar(true); 

  AddFeedBack( MemberNo,Email,Name,CateID,Content,PageUrl);
 }
 function AddFeedBack( MemberNo,Email,Name,CateID,Content,PageUrl)
 {

    WebServices.FeedBack.AddFeedBackCat(MemberNo,Email,Name,CateID,Content,PageUrl,onsucc);
 }
 function onsucc(result)
{

if(result==1)
    {
   
   showProgressBar(false);
    $get("btnSave").disabled = false;
    }
    
    Rend("Tcontent");
  
}
//替换显示信息
function Rend(divID)
{
    var domDiv1 = $get(divID);
   
   
    if(domDiv1!=null)
    {
        if($get("content")==null) return;
        var item= $get("content").innerHTML;
        var listBuilder = new Sys.StringBuilder();
       
     
            listBuilder.append(item);
        
        domDiv1.innerHTML = listBuilder.toString();
   }
}


 if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
